package com.ysx.oa.user.bean;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Author: 周海燕
 * @Date: 2021/11/21 16:19
 */
@Table(name = "kaoqin_user_t")
@Data
public class UserBean {

    // @Id作用：表明改字段为主键
    @Id
    private Integer id;

    private String phone;
    private String password;
    private String name;

    // 只有和数据库字段名不一致时添加@Column注解  （数据库字段不区分大小写）
    private Integer gender;


    @Column(name = "JOB_NUM")
    private String jobNum;


    private String mail;

    @Column(name = "CANCEL_FLAG")
    private Integer cancelFlag;

    @Column(name = "CREATE_TIME")
    private String createTime;

    @Column(name = "LAST_UPDATE_TIME")
    private String lastUpdateTime;

    // user表中没有改字段，不需要mapper识别，故加上@Transient注解
    @Transient
    private Integer roleId;

    @Transient
    private String roleName;

    @Transient
    private String sex;

    @Transient
    private String status;






}
